import java.util.Scanner;

public class Haha {
    public static void main(String[] args) {
        int num,n = 0;
        int sum = 0;
        Scanner read = new Scanner(System.in);
        while(true)
        {
            num = read.nextInt();
            assert num <= 100 && num >= 0:"成绩无效！";
            n++;
            sum += num;
            System.out.println(n +"个数和为" + sum);
            System.out.println(n +"个数平均值为" + sum / n);
        }
    }
}
